package com.ouwen.smartpay;

import com.fm.core.common.BootApp;
import com.fm.core.common.boot.Apps;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * @author liyong
 */
@BootApp(sysName = "doubbo-openapi", httpPort = 8080)
public class Main extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Main.class);
    }

    public static void main(String[] args) {
        Apps.setProfileIfNotExists("uat");
        new SpringApplication(Main.class).run(args);
    }
}